MySQL
User 'leopompevcmvc' has exceeded the 'max_questions' resource (current value: 64000)

Query

				select concat(ifNull(tw.expression, ifNull(twf.expression, "")), if(lw.languageId is null, "", concat("/", l.id)), if(tp.expression is null, if(tpf.expression is null, "", concat("/", tpf.expression)), concat("/", tp.expression)))
				from `page` p
				
				inner join (
					select id, url, 0 as aliasId, phpData from website
					union all
					select websiteId, url, id as aliasId, phpData from websiteAlias
				) w on w.id = p.websiteId
				
				left join `language│website` lw on lw.websiteId = w.id
				left join `language` l on l.id = ifNull(lw.languageId, 'fr')
				
				left join `language│translation` tw on tw.translationId = w.url && tw.languageId = l.id
				left join `language│translation` twf on twf.translationId = w.url && twf.languageId = 'fr'
				
				left join `language│translation` tp on tp.translationId = p.url && tp.languageId = l.id
				left join `language│translation` tpf on tpf.translationId = p.url && tpf.languageId = 'fr'
				
				where p.id = 25 && l.id = 'en'
				order by if(w.aliasId = 0, 0, 1), if(w.phpData = '', 0, 1)